package com.gzpi.hwgggh.service.impl;

import com.gzpi.hwgggh.entity.*;
import com.gzpi.hwgggh.mapper.*;
import com.gzpi.hwgggh.service.DWService;
import com.gzpi.hwgggh.sysenum.EnumErrorCode;
import com.gzpi.hwgggh.utils.Result;
import com.gzpi.hwgggh.vo.ExportConditionVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.*;

/**
 * @date : 2021-01-09 17:26
 **/
@Service
@Transactional
public class DWServiceImpl implements DWService {

    @Autowired
    private DWCMapper dwcMapper;
    @Autowired
    private DWXMapper dwxMapper;
    @Autowired
    private DWGMapper dwgMapper;
    @Autowired
    private GGPMapper ggpMapper;
    @Autowired
    private DWTPMapper dwtpMapper;


    @Override
    public List<DWX> ExportFileData(ExportConditionVo exportConditionVo) {
        return dwxMapper.selectDWXGListBandGgpXGListAndDwtpByVo(exportConditionVo);
    }

    @Override
    public List<DWC> ExportDWCFileData(ExportConditionVo exportConditionVo) {
        return dwcMapper.selectDWCListBandGgpCListAndDwtpByVo(exportConditionVo);
    }
}
